import { Builder, Browser, ThenableWebDriver } from "selenium-webdriver";
import chrome from "selenium-webdriver/chrome";

export default class {
  driver: ThenableWebDriver;
  constructor() {
    const options = new chrome.Options();
    options.addArguments("headless"); // 可选，用于无头模式
    this.driver = new Builder()
      .forBrowser(Browser.CHROME)
      .setChromeOptions(options)
      .build();
  }
}
